package com.java2104.mapper;

import com.java2104.entity.RCUser;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface RCUserMapper {
    @Select("select * from rc_user")
    List<RCUser> findList();
    @Select("select * from rc_user where id=#{param1}")
    RCUser foreignkey(int id);
    @Update("update rc_user set check_num=#{checkNum} where id=#{id}")
    int update(RCUser rcUser);
}
